class Siteadmin::ActivitiesController < ApplicationController
	before_filter :require_admin
	load_and_authorize_resource :through => :profile

	active_scaffold :activities do |config|
		config.create.columns.exclude :profile
		config.update.columns.exclude :profile

		config.columns[:name].label = "ชื่อกิจกรรม"
		config.columns[:involveAs].label = "การมีส่วนร่วม"

		config.list.columns = [:name, :involveAs]
		config.create.columns = [:name, :involveAs]
		config.update.columns = [:name, :involveAs]
	end

end
